// import axios from 'axios'

// axios.defaults.baseURL = process.env.VUE_APP_URL
// // axios.defaults.baseURL = ' http://geek.itheima.net'

// 引入axios副本
import request from '@/utils/request.js'

export function authorizationsPost (data) {
  return request({
    url: '/v1_0/authorizations',
    method: 'POST',
    data: data
  })
}

export function userProfile () {
  return request({
    url: '/v1_0/user/profile'
  })
}

export function channels () {
  return request({
    url: '/v1_0/channels'
  })
}

export function mpArticles (params) {
  return request({
    url: '/v1_0/mp/articles',
    params
  })
}
